package com.luban.config;

import com.luban.service.UserService;

import java.util.function.Supplier;

public class MySupplier implements Supplier<UserService> {
	@Override
	public UserService get() {
		UserService userService = new UserService();
		System.out.println("Supplier:利用Supplier接口，结合BeanDefinitionRegistryPostProcessor接口，向BeanDefinition中设置instanceSupplier:" + userService);
		return userService;
	}
}
